<?php
/*========================================= JooSam =========================================/
/																							/
/	Extention:		JooSam																	/
/	Created by:		Broadcastweb.eu - Paules												/
/	Site:			http://www.broadcastweb.eu												/
/	Email:			support@broadcastweb.eu													/
/	Copyright:		2011 - 2012 (c) Broadcastweb.eu											/
/	License:		CC BY-NC-ND 3.0 ~ http://creativecommons.org/licenses/by-nc-nd/3.0/		/
/	File Version:	0003																	/
/																							/
/========================================== JooSam ========================================*/
// Joomla security
defined('_JEXEC') or die;

// Import Joomla Data
JHtml::_('behavior.tooltip');
$srvActive = $this->srvActive;
$srvOnEdit = $this->srvOnEdit;
?>
<script type="text/javascript"> window.addEvent('domready', function(){new Fx.Accordion($$('div#panel-sliders.pane-sliders > .panel > h3.pane-toggler'), $$('div#panel-sliders.pane-sliders > .panel > div.pane-slider'), {onActive: function(toggler, i) {toggler.addClass('pane-toggler-down');toggler.removeClass('pane-toggler');i.addClass('pane-down');i.removeClass('pane-hide');Cookie.write('jpanesliders_panel-sliders',$$('div#panel-sliders.pane-sliders > .panel > h3').indexOf(toggler));},onBackground: function(toggler, i) {toggler.addClass('pane-toggler');toggler.removeClass('pane-toggler-down');i.addClass('pane-hide');i.removeClass('pane-down');if($$('div#panel-sliders.pane-sliders > .panel > h3').length==$$('div#panel-sliders.pane-sliders > .panel > h3.pane-toggler').length) Cookie.write('jpanesliders_panel-sliders',-1);},duration: 300,opacity: false,alwaysHide: true}); });</script>
<div class="JSM-Content">
	<div class="cpanel-left">
		<div id="cpanel" style="margin-top:18px;">
			<div class="icon-wrapper">
				<div class="icon">
					<a href="index.php?option=com_joosam&view=samsongs">
						<img src="../media/com_joosam/images/sam_songlist.png">
						<span><?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_003'); ?></span>
					</a>
				</div>
			</div>
			<div class="icon-wrapper">
				<div class="icon">
					<a onclick="return jsmSecurityLink(); " href="index.php?option=com_joosam&task=samadmin.playreset" title="<?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_004'); ?>">
						<img src="../media/com_joosam/images/reset_playlimit.png">
						<span><?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_005'); ?></span>
					</a>
				</div>
			</div>
			<div class="icon-wrapper">
				<div class="icon">
					<a onclick="return jsmSecurityLink(); " href="index.php?option=com_joosam&task=samadmin.requestreset" title="<?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_006'); ?>">
						<img src="../media/com_joosam/images/reset_request.png">
						<span><?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_007'); ?></span>
					</a>
				</div>
			</div>
			<div class="icon-wrapper">
				<div class="icon">
					<a onclick="return jsmSecurityLink(); " href="index.php?option=com_joosam&task=samadmin.perferreset" title="<?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_008'); ?>">
						<img src="./templates/bluestork/images/header/icon-48-purge.png">
						<span><?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_009'); ?></span>
					</a>
				</div>
			</div>
			<div class="icon-wrapper">
				<div class="icon">
					<a onclick="return jsmSecurityLink(); " href="index.php?option=com_joosam&task=samadmin.delhistory" title="<?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_010'); ?>">
						<img src="./templates/bluestork/images/header/icon-48-trash.png">
						<span><?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_011'); ?></span>
					</a>
				</div>
			</div>
			<div class="icon-wrapper">
				<div class="icon">
					<a onclick="return jsmSecurityLink(); " href="index.php?option=com_joosam&task=samadmin.delrequests" title="<?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_012'); ?>">
						<img src="./templates/bluestork/images/header/icon-48-trash.png">
						<span><?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_013'); ?></span>
					</a>
				</div>
			</div>
			<div class="icon-wrapper">
				<div class="icon">
					<a onclick="return jsmSecurityLink(); " href="index.php?option=com_joosam&task=samadmin.fixsongtype" title="<?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_014'); ?>">
						<img src="../media/com_joosam/images/fix_songtypes.png"/>
						<span><?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_015'); ?></span>
					</a>
				</div>
			</div>
		</div>
	</div>
	<div class="cpanel-right">
		<div id="panel-sliders" class="pane-sliders">
			<div style="display:none;">
				<div></div>
			</div>
			<div class="panel">
				<h3 class="title pane-toggler" id="cpanel-panel-logged">
					<a href="javascript:void(0);">
						<span><?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_016'); ?></span>
					</a>
				</h3>
				<div class="pane-slider content" style="padding-top: 0px; border-top-style: none; border-top-width: initial; border-top-color: initial; padding-bottom: 0px; border-bottom-style: none; border-bottom-width: initial; border-bottom-color: initial; overflow-x: hidden; overflow-y: hidden; height: auto; ">
					<table class="adminlist">
						<thead></thead>
						<tbody>
							<tr>
								<td width="120"><?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_017'); ?> </td>
								<td><?php echo $srvActive['name']; ?></td>
							</tr>
							<tr>
								<td width="120"><?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_018'); ?> </td>
								<td><?php echo $srvOnEdit['name']; ?></td>
							</tr>
						</tbody>
						<tfoot></tfoot>
					</table>
				</div>
			</div>
			<div class="panel">
				<h3 class="title pane-toggler" id="cpanel-panel-logg">
					<a href="javascript:void(0);">
						<span><?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_019'); ?></span>
					</a>
				</h3>
				<div class="pane-slider content" style="padding-top: 0px; border-top-style: none; border-top-width: initial; border-top-color: initial; padding-bottom: 0px; border-bottom-style: none; border-bottom-width: initial; border-bottom-color: initial; overflow-x: hidden; overflow-y: hidden; height: auto; ">
					<table class="adminlist">
						<thead></thead>
						<tbody>
							<tr>
								<td style="font-size:12px;"><?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_020'); ?></td>
							</tr>
						</tbody>
						<tfoot></tfoot>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div class="clr"></div>
	<form id="jsm_adminform">
		<div style="text-align:center;">
			<input type="hidden" id="jsm_securitybox" value="0"/>
			<input type="checkbox" onchange="jsmsecuritybox();" id="jsm_unlock_checkbox"/><span id="jsm_unlock_span"><?php echo JText::_('COM_JOOSAM_VIEWS_SAMADMIN_021'); ?></span>
		</div>
	</form>
</div>
<script>
	function jsmsecuritybox(){
		var target = document.getElementById('jsm_securitybox');
		var source = document.getElementById('jsm_unlock_checkbox');
		if(source.checked == true){
			target.value = '1';
		}
		else{
			target.value = '0';
		}
	}
	function jsmSecurityLink(){
		var target = document.getElementById('jsm_securitybox');
		if(target.value == '1'){
			return true;
		}
		else{
			alert('<?php echo JText::_("COM_JOOSAM_VIEWS_SAMADMIN_022"); ?>');
			return false;
		}
	}
</script>
<div class="clr"></div>